-- GENERATED SPELL FOR [Amani'shi Scout] --


function spell0_23586(pUnit, Event) --@Alert Drums,Self--
pUnit:FullCastSpellOnTarget(42177,pUnit)
pUnit:RegisterEvent('Sorts_23586', 5000, 1)
end

function spell1_23586(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(43205,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23586', 560, 1)
end

function spell2_23586(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(16496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23586', 636, 1)
end

function Sorts_23586(pUnit, Event)
local choix_sorts_23586 = math.random(0, 2)
if choix_sorts_23586 == 0 then
pUnit:RegisterEvent('spell0_23586', 1, 1)
end
if choix_sorts_23586 == 1 then
pUnit:RegisterEvent('spell1_23586', 1, 1)
end
if choix_sorts_23586 == 2 then
pUnit:RegisterEvent('spell2_23586', 1, 1)
end
end

function mob23586_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23586', math.random(1500, 3000), 1)
end

function mob23586_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23586_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23586_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23586, 1, 'mob23586_Action')
RegisterUnitEvent(23586, 2, 'mob23586_Leave')
RegisterUnitEvent(23586, 3, 'mob23586_Kill')
RegisterUnitEvent(23586, 4, 'mob23586_Die')
